package com.bingo.order.controller;

import com.bingo.order.pojo.OrderInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class OrderController {

    @PostMapping("/create")
    @ResponseBody
    public  OrderInfo createOrder(@RequestBody OrderInfo info,String username){
        System.out.println("username:"+username);
        return info;
    }

    @GetMapping("/get/{id}")
    @ResponseBody
    public Integer get(@PathVariable Integer id){
        return id;
    }
}
